package lab02.test35;

public class Salesman extends Employee {
    double salary;
    double num;

    public Salesman(){}
    public Salesman(double salary,double num){
        this.num=num;
        this.salary=salary;
    }

    @Override
    public double  computerSalary() {

        return salary+10*num;
    }

    @Override
    public String toString() {
        return "姓名："+name+"\n"+"性别："+sex+"\n"+"工资："+(salary+10*num);
    }
}
